function parsave(varargin)
savefile = varargin{1}; % first input argument
for i=2:nargin
    out.(inputname(i)) = varargin{i}; % other input arguments
end
save(savefile,'-struct','out')